package com.classeven.downhill.element;

import org.andengine.entity.scene.Scene;
import org.andengine.entity.scene.background.Background;
import org.andengine.util.color.Color;

import com.classeven.downhill.define.iGameDefines;


public class AScene 
{
	Scene scene;
	
	public AScene(int index)
	{
		Load(index);
	}
	
	public void Load(int index)
	{
		scene = new Scene();
//		scene.setColor();
		
		scene.setBackground(new Background(iGameDefines.SCENE_GAME[index].getR(),
				iGameDefines.SCENE_GAME[index].getG(), 
				iGameDefines.SCENE_GAME[index].getB(),
				iGameDefines.SCENE_GAME[index].getA()));
		
	}
	
	public void Unload()
	{
		scene = null;
	}
	
	public Scene theScene()
	{
		return scene;
	}
}
